package com.siboxuetang.need.persist.mybatis;


import com.siboxuetang.need.vo.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(String id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User findUserByOpenid(@Param("openid") String openid, @Param("origin") int origin);

    int addWechatUser(User user);
}